<?php

namespace app\common\model\mall\shop;

use think\Model;

class Accred extends Model
{
    // 表名
    protected $name = 'mall_shop_accred';

    public function getImgAttr($value, $data)
    {
        $mallcdn = config("mall.mallcdn");
        if($mallcdn && !stristr($value,$mallcdn))
            return $mallcdn ? $mallcdn.$value : cdnurl($value);
        else
            return cdnurl($value);
    }
}
